Previously we just checked the first character. And if that was a "-" as
in "-gtk-some-special-value", we assumed it was a number. Which it
clearly wasn't.
Test included
gboolean
_gtk_css_parser_has_number (GtkCssParser *parser)
{
+ char c;
+
+ if (parser->data[0] == '-' || parser->data[0] == '+')
+ c = parser->data[1];
+ else
+ c = parser->data[0];
+
/* ahem */
- return strchr ("+-0123456789.", parser->data[0]) != NULL;
+ return g_ascii_isdigit (c) || c == '.';
}
GtkCssValue *
background-shorthand-single.ref.css \
background-size.css \
background-size.ref.css \
+ background-win32-color-is-no-error.css \
+ background-win32-color-is-no-error.ref.css \
border.css \
border.errors \
border.ref.css \
--- /dev/null
+a {
+ background: -gtk-win32-color(edit, highlight);
+}
--- /dev/null
+a {
+ background-clip: border-box;
+ background-color: -gtk-win32-color(edit, highlight);
+ background-image: none;
+ background-origin: padding-box;
+ background-position: left top;
+ background-repeat: repeat;
+ background-size: auto;
+}